#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

int main()
{
	int cock = 0, hen = 0, chick = 0;
	for (cock = 0; cock <= 100; cock++)
	{
		for (hen = 0; hen <= 100; hen++)
		{
			for (chick = 0; chick <= 100; chick++)
			{
				if ((cock + hen + chick == 100) && (5 * cock + 3 * hen + chick / 3 == 100)&&(chick%3==0))
				{
					printf("cock:%d hen:%d chick:%d\n",cock,hen,chick);
				}
			}
		}
	}


}